/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.alag.ci.textanalysis.impl;

/**
 *
 * @author Justina
 */
public class SimpleStopWordStemmerMetaDataExtractor extends SimpleStopWordMetaDataExtractor {
    
    @Override
    protected String normalizeToken(String token) {
        if (acceptToken(token)) {
            token = super.normalizeToken(token);
        }
        if (token.endsWith("s")) {
            int index = token.lastIndexOf("s");
            if (index > 1) {
                token = token.substring(0, index);
            }
        }
        return token;
    }
    
}
